/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.ufes.gpf.sgm.view;

/**
 *
 * @author byacatalunha
 */
public class ListarMandadosView extends javax.swing.JFrame {

    /**
     * Creates new form ListarMandadosView
     */
    public ListarMandadosView() {
        initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jScrollPane1 = new javax.swing.JScrollPane();
        tblListaMandados = new javax.swing.JTable();
        btnNovoMandado = new javax.swing.JButton();
        btnVisualizarMandado = new javax.swing.JButton();
        btnExcluirMandado = new javax.swing.JButton();
        btnDuplicarMandado = new javax.swing.JButton();
        btnSair = new javax.swing.JButton();
        lblFiltro = new javax.swing.JLabel();
        cbmFiltro = new javax.swing.JComboBox();
        txtFiltro = new javax.swing.JTextField();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        tblListaMandados.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null}
            },
            new String [] {
                "Numero", "Nº da Central de Mandado", "Número dos autos", "Data de Distribuição", "Data de Recebimento"
            }
        ));
        jScrollPane1.setViewportView(tblListaMandados);

        btnNovoMandado.setText("Novo");

        btnVisualizarMandado.setText("Visualizar");

        btnExcluirMandado.setText("Excluir");

        btnDuplicarMandado.setText("Duplicar");

        btnSair.setText("Sair");

        lblFiltro.setText("Filtro");

        cbmFiltro.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cbmFiltroActionPerformed(evt);
            }
        });

        txtFiltro.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtFiltroActionPerformed(evt);
            }
        });

        org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(layout.createSequentialGroup()
                .addContainerGap()
                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup()
                        .add(btnNovoMandado)
                        .add(18, 18, 18)
                        .add(btnVisualizarMandado)
                        .add(18, 18, 18)
                        .add(btnExcluirMandado)
                        .add(18, 18, 18)
                        .add(btnDuplicarMandado, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 97, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .add(btnSair))
                    .add(jScrollPane1)
                    .add(layout.createSequentialGroup()
                        .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(lblFiltro)
                            .add(layout.createSequentialGroup()
                                .add(cbmFiltro, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 136, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                                .add(18, 18, 18)
                                .add(txtFiltro, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 424, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))
                        .add(0, 0, Short.MAX_VALUE)))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(layout.createSequentialGroup()
                .addContainerGap()
                .add(lblFiltro)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(cbmFiltro, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(txtFiltro, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jScrollPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 272, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .add(18, 18, 18)
                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(btnSair)
                    .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup()
                        .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(btnNovoMandado)
                            .add(btnVisualizarMandado)
                            .add(btnExcluirMandado)
                            .add(btnDuplicarMandado))
                        .addContainerGap())))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void txtFiltroActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtFiltroActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_txtFiltroActionPerformed

    private void cbmFiltroActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cbmFiltroActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_cbmFiltroActionPerformed

    /**
     * @param args the command line arguments
     */
   
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnDuplicarMandado;
    private javax.swing.JButton btnExcluirMandado;
    private javax.swing.JButton btnNovoMandado;
    private javax.swing.JButton btnSair;
    private javax.swing.JButton btnVisualizarMandado;
    private javax.swing.JComboBox cbmFiltro;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JLabel lblFiltro;
    private javax.swing.JTable tblListaMandados;
    private javax.swing.JTextField txtFiltro;
    // End of variables declaration//GEN-END:variables

    /**
     * @return the btnDuplicarMandado
     */
    public javax.swing.JButton getBtnDuplicarMandado() {
        return btnDuplicarMandado;
    }

    /**
     * @return the btnExcluirMandado
     */
    public javax.swing.JButton getBtnExcluirMandado() {
        return btnExcluirMandado;
    }

    /**
     * @return the btnNovoMandado
     */
    public javax.swing.JButton getBtnNovoMandado() {
        return btnNovoMandado;
    }

    /**
     * @return the btnSair
     */
    public javax.swing.JButton getBtnSair() {
        return btnSair;
    }

    /**
     * @return the btnVisualizarMandado
     */
    public javax.swing.JButton getBtnVisualizarMandado() {
        return btnVisualizarMandado;
    }

    /**
     * @return the cbmFiltro
     */
    public javax.swing.JComboBox getCbmFiltro() {
        return cbmFiltro;
    }

    /**
     * @return the tblListaMandados
     */
    public javax.swing.JTable getTblListaMandados() {
        return tblListaMandados;
    }

    /**
     * @return the txtFiltro
     */
    public javax.swing.JTextField getTxtFiltro() {
        return txtFiltro;
    }
}
